package cn.s1995.sloth.bizs.entity;

import cn.s1995.sloth.bizs.entity.base.BaseEntity;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 产品属性值
 *
 * @author Lex
 * @date 2023-12-14 10:04:08
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "产品属性值")
@TableName("biz_prod_prop_value")
@ExcelIgnoreUnannotated
public class ProdPropValue extends BaseEntity {


	/**
	 * 属性值ID
	 */
	@ExcelProperty(value = "属性值ID", index = 2)
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "属性值ID")
	private Long valueId;

	/**
	 * 属性值名称
	 */
	@ExcelProperty(value = "属性值名称", index = 3)
	@Schema(description = "属性值名称")
	private String valueName;

	/**
	 * 属性ID
	 */
	@ExcelProperty(value = "属性id", index = 0)
	@Schema(description = "属性ID")
	private Long propId;
	/**
	 * 属性名称
	 */
	@ExcelProperty(value = "属性名称", index = 1)
	@Schema(description = "属性名称")
	private String propName;
}
